<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../font/iconfont.css">
    <style>
        body{
            background-color: #333333;
            padding-top: 100px;
        }
        .tab-bar{
            background-color: white;
            width: 400px;
            margin: 0 auto;
            box-shadow: 0px 0px 6px #cccccc;
        }
        .tab-bar .result{
            padding: 8px 16px;
        }
        .tab-bar .result .title{
            font-size: 18px;
        }
        .tab-bar .result .title>i{
            font-size: 14px;
            font-style: normal;
            color: #FF5000;
        }
        .tab-bar .result>i{
            font-size: 28px;
            font-weight: bold;
            color: #aaaaaa;
            float: right;
            transform: translateY(-4px);
        }
        .tab-bar .list{
            margin: 0px;
            padding: 0px;
            list-style: none;
            padding: 14px 18px;
            display: flex;
            flex-flow: row wrap;
        }
        .tab-bar .list>li{
            background-color: #efefef;
            margin: 0px 6px;
            padding: 6px 16px;
            text-align: center;
            min-width: 20%;
            flex-grow: 1;
            border-radius: 6px;
            cursor: pointer;
        }
        .tab-bar .list>li.active{
            color: white;
            background-color:#FF5000 ;
        }
    </style>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <div class="tab-bar">
            <div class="result">
                <span class="title">
                    区域：<i>{{ area }}</i>
                </span>
                <i class="iconfont icon-down"></i>
            </div>
            <ul class="list">
                <li @click=" area='江浙沪' " :class=" area=='江浙沪'?'active':'' ">江浙沪</li>
                <li @click=" area='珠三角' " :class=" area=='珠三角'?'active':'' ">珠三角</li>
                <li @click=" area='北京' " :class=" area=='北京'?'active':'' ">北京</li>
            </ul>
        </div>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            area:"请选择"
        }
        
    })
</script>
</html>